//
//  BaseViewController.h
//  TraderMobileKYi
//
//  Created by shijiezhao on 9/6/17.
//  Copyright © 2017年 com.yeezsoft.init. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "EBMBlockHeader.h"


typedef void(^OperationBlock)(void);



@interface EBMBaseViewController : UIViewController





#pragma mark --------------创建变量--------------

//  左侧按钮回调
@property(nonatomic,copy)OperationBlock navigationLeftButtonBlock;
//  右侧按钮回调
@property(nonatomic,copy)OperationBlock navigationRightButtonBlock;

//  操作回调
@property(nonatomic,copy)OperationBlock operationBlock;

//  左侧按钮
@property(nonatomic,strong)NSMutableArray *nvigationLetfBarButtonItemsMArray;
//  右侧按钮
@property(nonatomic,strong)NSMutableArray *nvigationRightBarButtonItemsMArray;

//  参数0
@property(nonatomic,strong)id parame0;
//  参数1
@property(nonatomic,strong)id parame1;

//  进入界面切换到的模块
@property(nonatomic,assign)NSInteger jumpInIndex;
//  进入界面切换到的模块
@property(nonatomic,assign)NSInteger jumpInIndex1;
//  进入界面切换到的模块
@property(nonatomic,assign)NSInteger jumpInIndex2;


#pragma mark --------------方法--------------


// 创建左侧返回按钮
- (void)baseCreateLeftBackButtonWithBackImage:(NSString *)backImage;

//  隐藏返回按钮
- (void)baseHideBackButton;

//  返回按钮
- (void)baseBackButtonClick:(UIButton *)button;

/// 刷新请求网络请求
- (void)baseRefreshRequestData;

/// 网络重连刷新请求网络请求
- (void)baseNetWorkRefreshRequestData;

/// 登录成功
- (void)loginRefresh;
/// 退出刷新
- (void)logoutRefresh;



/// 创建控件    左侧按钮
/// @param title 标题
/// @param imageName 图片名称
/// @param buttonClickBlock 回调
- (void)baseCreateViewInNavigationBarLeftButtonWtihTitle:(NSString *)title
                                               imageName:(NSString *)imageName
                                        buttonClickBlock:(OperationBlock)buttonClickBlock;


/// 创建控件    右侧按钮
/// @param title 标题
/// @param imageName 图片名称
/// @param buttonClickBlock 回调
- (void)baseCreateViewInNavigationBarRightButtonWtihTitle:(NSString *)title
                                                imageName:(NSString *)imageName
                                         buttonClickBlock:(OperationBlock)buttonClickBlock;




@end
